package com.example.springioc.demo3.controller;

import com.example.springioc.demo3.service.D3UserService1;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Hua YY
 * Date: 2024-11-18
 * Time: 15:51
 */
@Controller
public class D3UserController3 {
    @Autowired
    private D3UserService1 d3UserService1;

    @Autowired
    public void setD3UserService1(D3UserService1 d3UserService1) {
        this.d3UserService1 = d3UserService1;
    }
    public void sayHi(){
        System.out.println("hi,D3UserController3");
        d3UserService1.sayHi();
    }
}
